#include "Game.hpp"

#include <SFML/graphics.hpp>

namespace Fiddle
{

Game::Game()
{
	window = new sf::RenderWindow( sf::VideoMode(800,600,32), "Fiddle" );
}

Game::~Game()
{
	delete window;
}

void Game::run()
{
	while( window->IsOpened() )
	{
		sf::Event e;
		while( window->GetEvent( e ) )
		{
			if( e.Type == sf::Event::Closed )
				window->Close();
		}
	
		window->Clear( sf::Color(140, 132, 107) );

		window->Display();
	}
}

}//End NS Fiddle